/*
 * @Description:
 * @Author: meihangbo
 * @Date: 2021-03-21 11:40:06
 * @LastEditTime: 2021-03-21 19:56:06
 * @LastEditors: meihangbo
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'

import 'nprogress/nprogress.css'
import './plugins/element.js'
// 导入全局样式
import './assets/css/common/baseCss.css'
// 导入图标样式
import './assets/fonts/iconfont.css'

Vue.config.productionTip = false

// 设置全局过滤器
Vue.filter('dateFormat', function(valueTime) {
  let date = new Date(valueTime)
  // 时间格式 yyyy-mm-dd 时间处理
  const y = date.getFullYear()
  const m = (date.getMonth() + 1 + '').padStart(2, '0')
  const d = (date.getDate() + '').padStart(2, '0')

  const hh = (date.getHours() + '').padStart(2, '0')
  const mm = (date.getMinutes() + '').padStart(2, '0')
  const ss = (date.getSeconds() + '').padStart(2, '0')

  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
